﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LeadVinaglue.Models.ViewPages;

namespace LeadVinaglue.Areas.Management.Controllers
{
    public class RoleListController : Controller
    {
        // Create an instance of user manage
        LeadVinaglue.Repository.RoleManagementRepository repository = new LeadVinaglue.Repository.RoleManagementRepository();

        // GET: /Management/RoleList/
        [Authorize(Roles = "SuperAdministrator")]
        public ActionResult Index()
        {
            RoleManagementModel model = new RoleManagementModel();
            model = repository.GetModel(Helpers.Constant.HOME, "SuperAdministrator", 0);

            return View(model);
        }

    }
}
